﻿<%@ Page Title="" EnableEventValidation="false" Language="C#" MasterPageFile="~/SIPO.master" AutoEventWireup="false" 
CodeFile="rptUmurPiutang.aspx.cs" Inherits="SIPO.Web.lists.Report.rptPenerimaanlist" %>

<asp:Content ID="ctnBody" ContentPlaceHolderID="body" runat="server">

    <script src="<%= ResolveUrl("~/scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
    <script src="<%= ResolveUrl("~/scripts/jquery.validate.wrapper.js") %>" type="text/javascript"></script>
    <script src="<%= ResolveUrl("~/scripts/helper.js") %>" type="text/javascript"></script>
   
   
 
    <script type="text/javascript">
        $("#btnCancel").button({ icons: { primary: "ui-icon-close"} });
        $("#<%=btnCetak.ClientID %>").button({ icons: { primary: "ui-icon-print"} });
    </script>
   
	    <script type="text/javascript">
	        $(document).ready(function () {
	            $("#<%=btnCetak.ClientID %>").click(function () {
	                // alert($('txtPeriode').val());
	                if ($('#txtPeriode').val() != "" && $('#txtPeriode2').val() != "") {
	                    
	                    $('#<%=hfPeriode.ClientID %>').val($('#txtPeriode').val());
	                    $('#<%=hfPeriode2.ClientID %>').val($('#txtPeriode2').val());
	                  
	                }
	                else {
	                    alert("Periode harus di isi!");
	                    return false;
	                }
	            });

	            $('#txtPeriode').val($('#<%=hfPeriode.ClientID %>').val());
	            $('#txtPeriode2').val($('#<%=hfPeriode2.ClientID %>').val());

	          


	            $("#txtPeriode").datepicker({ showWeek: true, showButtonPanel: true,
	                changeYear: true, dateFormat: 'dd/mm/yy', changeMonth: true,
	                onSelect: function (selected) {
	                    $("#txtPeriode2").datepicker("option", "minDate", selected)
	                }
	            });

	            $("#txtPeriode2").datepicker({ showWeek: true, showButtonPanel: true,
	                changeYear: true, dateFormat: 'dd/mm/yy', changeMonth: true,
	                onSelect: function (selected) {
	                    $("#txtPeriode").datepicker("option", "maxDate", selected)
	                }
	            });






	        });
	      
           </script>
   
  
  
   

    <h2>Laporan Umur Piutang</h2>

<table>
    
   
    
    <tr>
        <td style="width: 50">
            Pilih Periode
        </td>
        <td>:</td>
       
        <td><input type="text" id="txtPeriode" /> - <input type="text" id="txtPeriode2" style="width: 141px" /></td>

         <td style="width: 50">
             <span style="color: #FF0000">*</span></td>
   
       
        <td>&nbsp;</td>
    </tr>
  
    <tr>
            <td colspan="2">
                &nbsp;
            </td>
            <td>
                <div style="text-align: right; padding-top: 10px;">
                <asp:Button ID="btnCetak" runat="server" Text="Cetak" onclick="Button1_Click" />
                       
                       
                    &nbsp;&nbsp;     
                       
                      
                      <input type="button" id="btnCancel" value="Batal" />
                </div>
            </td>
        </tr>
</table>
    <asp:HiddenField ID="hfPeriode" runat="server" />
    <%--<asp:HiddenField ID="hfSubSubSektorID" runat="server" />
    <asp:HiddenField ID="hfTransTypeID" runat="server" />
    <asp:HiddenField ID="hfPeriodeAwal" runat="server" />
    <asp:HiddenField ID="hfPeriodeAkhir" runat="server" />
    <asp:HiddenField ID="hfDetail" runat="server" /--%>&nbsp;<asp:HiddenField 
        ID="hfPeriode2" runat="server" />
    <asp:HiddenField 
        ID="hfSub" runat="server" />
    <br />
    <br />
<div>
        <asp:ScriptManager ID="scManager" runat="server" EnablePartialRendering="true">
        </asp:ScriptManager>
        <rsweb:ReportViewer ID="rsViewer" 
            runat="server" Height="100%" SizeToReportContent="true" Width="100%" 
            HyperlinkTarget="_blank" AsyncRendering="False" KeepSessionAlive="False">
        </rsweb:ReportViewer>
         
    
    </div>
    
 
</asp:Content>